import request from '@/utils/request'

export const specialtyList = (data) => { //表格查询
  return request.request({
    url: '/maintenance-management/api/maintenance/testTesting/page',
    method: 'post',
    data
  })
}
export const specialtyAdd = (data) => { //新增
  return request.request({
    url: '/maintenance-management/api/maintenance/testTesting/save',
    method: 'post',
    data
  })
}
//原 put
export const specialtyEdit = (data) => { //编辑
  return request.request({
    url: '/maintenance-management/api/maintenance/testTesting/put/update',
    method: 'post',
    data
  })
}
//原 del
export const specialtyDelete = (id) => { //删除
  return request.request({
    url: '/maintenance-management/api/maintenance/testTesting/del/'+id,
    method: 'get',
  })
}
export const specialtyDetails = (id) => { //详情
  return request.request({
    url: '/maintenance-management/api/maintenance/testTesting/'+id,
    method: 'get',
  })
}

// 记录
export const specialtyRecordList = (data) => { //表格查询
  return request.request({
    url: '/maintenance-management/api/maintenance/testTestingRecord/page',
    method: 'post',
    data
  })
}
export const specialtyRecordAdd = (data) => { //新增
  return request.request({
    url: '/maintenance-management/api/maintenance/testTestingRecord/save',
    method: 'post',
    data
  })
}
//原 put
export const specialtyRecordEdit = (data) => { //编辑
  return request.request({
    url: '/maintenance-management/api/maintenance/testTestingRecord/put/update',
    method: 'post',
    data
  })
}
//原 del
export const specialtyRecordDelete = (id) => { //删除
  return request.request({
    url: '/maintenance-management/api/maintenance/testTestingRecord/del/'+id,
    method: 'get',
  })
}
export const specialtyRecordDetails = (id) => { //详情
  return request.request({
    url: '/maintenance-management/api/maintenance/testTestingRecord/'+id,
    method: 'get',
  })
}